# 交叉编译器
CROSS_COMPILE	?=

CC				:= $(CROSS_COMPILE)gcc
GG				:= $(CROSS_COMPILE)g++
LD				:= $(CROSS_COMPILE)ld
OBJCOPY			:= $(CROSS_COMPILE)objcopy
OBJDUMP			:= $(CROSS_COMPILE)objdump

# 目标
TARGET			:= demo
LIB				:= libmath.a

export CC GG LD OBJCOPY OBJDUMP TARGET LIB

all: $(LIB) $(TARGET)  

$(LIB):
	$(MAKE) -C libs

$(TARGET):
	$(MAKE) -C project

.PHONY:clean
clean:
	$(MAKE) -C libs clean
	$(MAKE) -C project clean
